/* 管理员面板样式 */
.admin-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.admin-panel.show {
    right: 0;
}

.admin-panel-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-panel-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.admin-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.admin-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.admin-search {
    margin-bottom: 20px;
}

.admin-search input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    outline: none;
    transition: background-color 0.3s ease;
}

.admin-search input:focus {
    background: white;
}

.admin-search input::placeholder {
    color: #666;
}

.online-users-list {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.user-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /*transition: all 0.3s ease;*/
}

.user-item:hover {
    background: rgba(255, 255, 255, 0.15);
    /*transform: translateY(-2px);*/
}

.user-item.admin {
    border-left: 4px solid #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.user-nickname {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-type {
    background: #ffd700;
    color: #333;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-type.normal {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.user-details {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.action-btn.kick {
    background: rgba(244, 67, 54, 0.3);
}

.action-btn.kick:hover {
    background: rgba(244, 67, 54, 0.5);
}

.action-btn.promote {
    background: rgba(76, 175, 80, 0.3);
}

.action-btn.promote:hover {
    background: rgba(76, 175, 80, 0.5);
}

.admin-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.admin-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.admin-toggle-btn.hidden {
    display: none;
}

/* 踢出确认对话框 */
.kick-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.kick-modal.show {
    display: flex;
}

.kick-modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.kick-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.kick-modal-header h3 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.kick-modal-header p {
    color: #666;
    margin: 0;
}

.kick-reason {
    margin: 20px 0;
}

.kick-reason label {
    display: block;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.kick-reason textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border-color 0.3s ease;
}

.kick-reason textarea:focus {
    border-color: #667eea;
}

.kick-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.kick-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.kick-modal-btn.cancel {
    background: #e0e0e0;
    color: #666;
}

.kick-modal-btn.cancel:hover {
    background: #d0d0d0;
}

.kick-modal-btn.confirm {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.kick-modal-btn.confirm:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    transform: translateY(-1px);
}

/* 加载状态 */
.loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 20px;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* 空状态 */
.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 20px;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-panel {
        width: 100%;
        right: -100%;
    }

    .admin-toggle-btn {
        top: 10px;
        right: 10px;
        padding: 10px;
        font-size: 1rem;
    }

    .kick-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
        padding: 20px;
    }

    .user-actions {
        flex-wrap: wrap;
    }

    .action-btn {
        flex: 1;
        min-width: 80px;
    }
}

/* 动画效果 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.user-item {
    /*animation: slideInRight 0.3s ease;*/
}

/* 消息通知样式 */
.admin-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1200;
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: all 0.3s ease;
}

.admin-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.admin-notification.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

/* 禁言按钮样式 */
.action-btn.ban-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.action-btn.ban-btn:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 152, 0, 0.4);
}
